package com.qf.entity;

import lombok.Data;

@Data  //购物车实体类
public class Cart {

    private int c_id; //购物车id
    private int u_id; //外键用户id
    private int c_allprice; //购物车总价
    private int c_goodsnumber; //单个商品数量
    private int c_cartgoodsnumber; //购物车商品个数
    private int c_goodssubtotal; //商品小计
    private int g_id;  //商品外键


   /* public Cart(int cid, int u_id, int c_allprice, int c_goodsnumber, int c_cartgoodsnumber, int c_goodssubtotal, int g_id) {
        this.cid = cid;
        this.u_id = u_id;
        this.c_allprice = c_allprice;
        this.c_goodsnumber = c_goodsnumber;
        this.c_cartgoodsnumber = c_cartgoodsnumber;
        this.c_goodssubtotal = c_goodssubtotal;
        this.g_id = g_id;
    }*/
}
